﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo.Common {
    public static class TextReaderExtensions {
        public static IEnumerable<string> ReadAllLines(this TextReader reader) {
            string line = reader.ReadLine();
            for (; line != null; line = reader.ReadLine()) {
                yield return line;
            }
        }
    }

}
